package com.dayatang.hrm.compensation.domain;

import java.util.Date;
import java.util.List;

import com.dayatang.commons.domain.EntityRepository;

public interface CalculateRuleRepository extends
		EntityRepository<CalculateRule, Long> {

	List<CalculateRule> findBySalaryCalculateItem(
			SalaryCalculateItem salaryCalculateItem, Date queryDate);

	List<SalaryParameter> getDependentSalaryParameters(CalculateRule calculateRule,
			Date queryDate);

	List<SalaryCalculateItem> getDependentSalaryCalculateItems(
			CalculateRule calculateRule, Date queryDate);

	void validateCalculateRule(CalculateRule calculateRule);

}
